\documentclass[12pt,a4paper]{article}
\usepackage{colortbl}
\begin{document}


\begin{tabular}{|p{10cm}|p{2cm}|}
\multicolumn{1}{l}{}&\multicolumn{1}{r}{\underline{Differenzen}}\\

\arrayrulecolor{blue}\hline
\multicolumn{1}{!{\color{red}\vline}l}{1}&\multicolumn{1}{r!{\color{red}\vline}}{0.1443434}\\
\multicolumn{1}{!{\color{red}\vline}l}{2}&\multicolumn{1}{r!{\color{red}\vline}}{0.243433}\\
\arrayrulecolor{yellow}
\hline
\arrayrulecolor{black}
\multicolumn{1}{l|}{3afdsdds}&\multicolumn{1}{r}{0.3}\\
\multicolumn{1}{l|}{4fsdaadssfd}&\multicolumn{1}{r}{0.4}\\
\multicolumn{1}{l|}{5}&\multicolumn{1}{r}{0.5}\\
\multicolumn{1}{l|}{6}&\multicolumn{1}{r}{0.6}\\
\multicolumn{1}{l|}{7}&\multicolumn{1}{r}{0.7}\\
\end{tabular}


\begin{center}\begin{tabular}{>{\columncolor[rgb]{0.8,0.8,0.8}}c|cccc|}
 X/Y &  \multicolumn{4}{>{\columncolor[rgb]{0.8,0.8,0.8}}c|}{Poblacin } \\ 
 \rowcolor[rgb]{0.8,0.8,0.8}  Edad &  Sevilla &  Crdoba &  Madrid & Teruel \\ 
\hline 
 20 &  23 &  34 &  56 & 87 \\ 
 25 &  22 &  56 &  76 & 23 \\ 
\hline 
\end{tabular}\end{center}

The following code also gave the same result on having imported this table:

\begin{center}\begin{tabular}{>{\columncolor[gray]{.8}}c|cccc|}
 X/Y &  \multicolumn{4}{>{\columncolor[gray]{.8}}c|}{Poblacn } \\
 \rowcolor[gray]{.8}  Edad &  Sevilla &  Cdoba &  Madrid & Teruel \\
\hline
 20 &  23 &  34 &  56 & 87 \\
 25 &  22 &  56 &  76 & 23 \\
\hline
\end{tabular}\end{center}

\begin{center}\begin{tabular}{>{\columncolor[rgb]{0.8,0.8,0.8}}c|cccc|}
 X/Y &  \multicolumn{4}{>{\columncolor[rgb]{0.8,0.8,0.8}}c|}{Poblacin } \\ 
 \rowcolor[rgb]{0.8,0.8,0.8}  Edad &  Sevilla &  Crdoba &  Madrid & Teruel \\ 
\hline 
 20 &  23 &  34 &  56 & 87 \\ 
 25 &  22 &  56 &  \multicolumn{1}{>{\columncolor{blue}}c}{76} & 23 \\ 
\hline 
\end{tabular}\end{center}

The following code also gave the same result on having imported this table:

 \begin{center}\begin{tabular}{c|cccc|}
 \multicolumn{1}{>{\columncolor[rgb]{0.8,0.8,0.8}}c|}{X/Y} &  \multicolumn{4}{>{\columncolor[rgb]{0.8,0.8,0.8}}c|}{Poblacin } \\ 
 \multicolumn{1}{>{\columncolor[rgb]{0.8,0.8,0.8}}c|}{Edad} &  \multicolumn{1}{>{\columncolor[rgb]{0.8,0.8,0.8}}c}{Sevilla} &  \multicolumn{1}{>{\columncolor[rgb]{0.8,0.8,0.8}}c}{Crdoba} &  \multicolumn{1}{>{\columncolor[rgb]{0.8,0.8,0.8}}c}{Madrid} &  \multicolumn{1}{>{\columncolor[rgb]{0.8,0.8,0.8}}c|}{Teruel} \\ 
 \hline 
 \multicolumn{1}{>{\columncolor[rgb]{0.8,0.8,0.8}}c|}{20} &  23 &  34 &  56 & 87 \\ 
 \multicolumn{1}{>{\columncolor[rgb]{0.8,0.8,0.8}}c|}{25} &  22 &  56 &  \multicolumn{1}{>{\columncolor{blue}}c}{76} & 23 \\ 
 \hline 
 \end{tabular}\end{center}
 
\begin{center}\begin{tabular}{c|cccc|}
 X/Y &  \multicolumn{4}{c|}{Poblacin } \\ 
 Edad &  Sevilla &  Crdoba &  Madrid & Teruel \\ 
 \hline 
 20 &  \multicolumn{1}{l}{23} &  34 &  \multicolumn{1}{l}{56} & 87 \\ 
 \cline{2-2} \cline{4-4} 
 25 &  22 &  56 &  76 & 23 \\ 
 \hline 
 \end{tabular}\end{center} 

\begin{center}\begin{tabular}{|l|p{10cm}||}
\hline
 \rowcolor[rgb]{0.8,0.8,0.8}  \multicolumn{1}{|>{\columncolor[rgb]{0.8,0.8,0.8}}c|}{Cdigos} &  \multicolumn{1}{>{\columncolor[rgb]{0.8,0.8,0.8}}p{10cm}|}{\centering Significado} \\ 
\hline 
 \verb<#c|,[gray]{.8}: &  & #< & Crea \verb!\multicolumn{c|}{3}{Texto entre esas columnas}! y esas  celdas las colorea con \verb![gray]{.8}! \\ 
\hline 
 \verb!#c|: & & #! &  \multicolumn{1}{l|}{dem, sin colorear} \\ 
\hline 
 \verb!#c,{blue}; texto &  & ! & Crea \verb!\multicolumn{c}{1}{texto}! y esa  celda la colorea con \verb!{blue}! \\ 
\hline 
 \verb!#c; texto & & ! &  \multicolumn{1}{l|}{dem, sin colorear} \\ 
\hline 
 \verb!#<#> & ! & Aade: \verb!\cline{c-c}! donde c es la columna donde se  encuentran esos cdigos. Se pueden repetir en una misma fila. \\ 
\hline 
 \verb!#< &  & #>! & Aade: \verb!\cline{ci-cf}! donde ci es la columna donde se  encuentra \verb!#!.  Se pueden repetir en una misma fila. \\ 
\hline 
\end{tabular}\end{center}

\begin{center}\begin{tabular}{|lp{0.75cm}p{0.66cm}p{0.78cm}p{1.16cm}||}
 \cline{1-1} \cline{2-2} \cline{3-3} \cline{4-4}
 \multicolumn{4}{|c}{hola que tal estas } &  \multicolumn{1}{c|}{} \\ 
\hline 
 \multicolumn{1}{|c}{1} &  \multicolumn{1}{c}{a} &  \multicolumn{1}{c}{b} &  \multicolumn{1}{c|}{c} &  \multicolumn{1}{c|}{d} \\ 
 \multicolumn{1}{|c|}{2} &  \multicolumn{1}{c}{e} &  \multicolumn{1}{>{\columncolor{red}}p{0.66cm}}{\centering f} &  \multicolumn{1}{l}{g} &  \multicolumn{1}{c|}{h} \\ 
 \multicolumn{1}{|c}{3} &  \multicolumn{1}{c}{i} &  \multicolumn{1}{c|}{j} &  \multicolumn{2}{l|}{otra prueba } \\ 
\hline 
 \multicolumn{1}{|c}{4} &  \multicolumn{1}{c}{k} &  \multicolumn{1}{c}{l} &  \multicolumn{1}{c|}{m} &  \multicolumn{1}{c|}{n} \\ 
\hline 
\end{tabular}\end{center}    

\begin{center}\begin{tabular}{c|cp{0.97cm}p{0.97cm}p{0.97cm}p{0.88cm}p{0.97cm}}
 \multicolumn{2}{c|}{TIPOS DE VARIABLES } &  \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}p{0.97cm}|}{\centering (1)} &  \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}p{0.97cm}|}{\centering (2)} &  \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}p{0.97cm}|}{\centering (3)} &  \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}p{0.88cm}|}{\centering (4)} &  \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}p{0.97cm}|}{\centering (5)} \\ 
\hline 
 \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}c|}{NOMINAL} &  \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}c|}{(1)} &  \multicolumn{1}{p{0.97cm}|}{\centering caso 1.1} &  \multicolumn{1}{p{0.97cm}|}{\centering caso 1.2} &  \multicolumn{1}{p{0.97cm}|}{\centering caso 1.3} &  \multicolumn{1}{p{0.88cm}|}{\centering caso 1.4} &  \multicolumn{1}{p{0.97cm}|}{\centering caso 1.5} \\ 
 \cline{4-4} \cline{5-5} \cline{6-6} \cline{7-7} 
 \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}l|}{} &  \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}c|}{(2)} &  \multicolumn{1}{>{\columncolor[rgb]{0.85,0.85,0.85}}p{0.97cm}}{\centering} &  \multicolumn{1}{p{0.97cm}|}{\centering caso 2.2} &  \multicolumn{1}{p{0.97cm}|}{\centering caso 2.3} &  \multicolumn{1}{p{0.88cm}|}{\centering caso 2.4} &  \multicolumn{1}{p{0.97cm}|}{\centering caso  2.5} \\ 
 \cline{1-1} \cline{5-5} \cline{6-6} \cline{7-7} 
 \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}c|}{ORDINAL DISCRETA} &  \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}c|}{(3)} &  \multicolumn{1}{>{\columncolor[rgb]{0.85,0.85,0.85}}p{0.97cm}}{\centering} &  \multicolumn{1}{>{\columncolor[rgb]{0.85,0.85,0.85}}p{0.97cm}}{\centering} &  \multicolumn{1}{p{0.97cm}|}{\centering caso 3.3} &  \multicolumn{1}{p{0.88cm}|}{\centering caso 3.4} &  \multicolumn{1}{p{0.97cm}|}{\centering caso 3.5} \\ 
 \cline{6-6} \cline{7-7} 
 \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}l|}{} &  \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}c|}{(4)} &  \multicolumn{1}{>{\columncolor[rgb]{0.85,0.85,0.85}}p{0.97cm}}{\centering} &  \multicolumn{1}{>{\columncolor[rgb]{0.85,0.85,0.85}}p{0.97cm}}{\centering} &  \multicolumn{1}{>{\columncolor[rgb]{0.85,0.85,0.85}}p{0.97cm}}{\centering} &  \multicolumn{1}{p{0.88cm}|}{\centering caso 4.4} &  \multicolumn{1}{p{0.97cm}|}{\centering caso 4.5} \\ 
 \cline{1-1} \cline{7-7} 
 \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}c|}{INTERVALO O RAZN} &  \multicolumn{1}{>{\columncolor[rgb]{0.82,0.82,0.82}}c|}{(5)} &  \multicolumn{1}{>{\columncolor[rgb]{0.85,0.85,0.85}}p{0.97cm}}{\centering} &  \multicolumn{1}{>{\columncolor[rgb]{0.85,0.85,0.85}}p{0.97cm}}{\centering} &  \multicolumn{1}{>{\columncolor[rgb]{0.85,0.85,0.85}}p{0.97cm}}{\centering} &  \multicolumn{1}{>{\columncolor[rgb]{0.85,0.85,0.85}}p{0.88cm}}{\centering} &  \multicolumn{1}{p{0.97cm}|}{\centering caso 5.5} \\ 
\hline 
\end{tabular}\end{center}



\end{document}
